package com.tyk.bookstore.back.user.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tyk.bookstore.back.common.core.model.type.Gender;
import com.tyk.bookstore.back.system.model.type.UserState;
import lombok.Data;

import java.time.LocalDateTime;

@TableName("user")
@Data
public class UserDo {

	@TableId(type = IdType.AUTO)
	private Long id;

	private String account;

	private String password;

	private String phone;

	private String email;

	private UserState state;

	private Boolean root;

	private String name;

	private Gender gender;

	private Integer age;

	private String idCard;

	private String avatar;

	private LocalDateTime createTime;

	private LocalDateTime updateTime;

}
